<include file="Public:js" /> 
<div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">添加附加信息</span></div>
        </div>
        
        <div class="result-wrap">
            <form action="{:U('Fangwei/addInfo')}" method="post" id="myform" name="myform">
            <!-- 店铺ID -->
                <input type="hidden" name="goods_id" value="">
                <div class="config-items">
                    <div class="config-title">
                        <h1><i class="icon-font">&#xe00a;</i>附加信息</h1>
                    </div>
                    <div class="result-content">
                        <table width="100%" class="insert-tab">
                            <tbody>
                                <tr>
                                    <th width="15%"><i class="require-red">*</i>{$vo.name}：</th> 
                                    <if condition="$vo.form_type eq text" >
                                        <td>
                                            <input type="text" placeholder="{$vo.name}"  datatype="*" nullmsg="请添加商品名称" errormsg="请添加商品名称"    name="{$vo.field}" class="common-text"> 
                                        </td>
                                    </if>          
                                    <td>
                                        <input type="radio" name="{$vo.field}" id="">{$vo.}
                                    </td>
                                </tr>
	                            <tr>
	                                 <th width="15%"><i class="require-red"></i>商品货号</th>
	                               <td>
	                                    <input type="text"     name="goods_sn" class="common-text"> 
	                               </td>
	                                 
	                            </tr>
	                            <tr>
	                                <th width="15%"><i class="require-red">*</i>商品所属分类：</th>                            
	                                <td>  
								        <select name="term_id">  
								   
								            <volist name="row" id="val">  
								                <option value="{$val.term_id}"  size="85"  class="common-text">{$val['html']}{$val.name}</option>  
								            </volist>  
								        </select>  
								    </td> 

	                            </tr>
	                            <tr>
	                                 <th width="15%"><i class="require-red"></i>商品价格：</th>
	                                
	                               <td>
	                                    <input type="text" datatype="*" nullmsg="请添加商品价格" name="shop_price" class="common-text"> 
	                               </td>
	                                 
	                            </tr>
	                             <tr>
	                                 <th width="15%"><i class="require-red"></i>市场价：</th>
	                                
	                               <td>
	                                    <input type="text"  datatype="*" nullmsg="请添加商品商场价" name="market_price" class="common-text"> 
	                               </td>
	                                 
	                            </tr>
	                            <tr>
	                                 <th width="15%"><i class="require-red"></i>数量：</th>
	                               <td>
	                                    <input type="text" datatype='n' value='0' errormsg="请添加有效的数量"   name="goods_number" class="common-text"> 
	                               </td>
	                                 
	                            </tr> 
	                                <tr>
	                                    <th></th>
	                                    <td>
	                                      
	                                        <input type="submit" value="提交" class="btn btn-primary btn6 mr10">
	                                        <input type="button" value="返回" onclick="history.go(-1)" class="btn btn6">
	                                    </td>
	                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                </form>
                
        </div>
    </div>

<script type="text/javascript">
$(function(){
	
	 $("#myform").Validform({
	    
	 });  //就这一行代码！;
		
	  
	
})
</script>